package com.peas.platform.module.icims.base.sys.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

// 数据回收
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_recycle`")
public class RecyclePo extends BasePo {

    //系统
    @Size(max = 100, message = "系统不能超过100个字符")
    @TableField(value = "`system`", jdbcType = JdbcType.VARCHAR)
    private String system;

    //系统名称
    @Size(max = 100, message = "系统名称不能超过100个字符")
    @TableField(value = "`system_name`", jdbcType = JdbcType.VARCHAR)
    private String systemName;

    //服务
    @Size(max = 100, message = "服务不能超过100个字符")
    @TableField(value = "`service`", jdbcType = JdbcType.VARCHAR)
    private String service;

    //服务名
    @Size(max = 100, message = "服务名不能超过100个字符")
    @TableField(value = "`service_name`", jdbcType = JdbcType.VARCHAR)
    private String serviceName;

    //表名
    @Size(max = 200, message = "表名不能超过200个字符")
    @TableField(value = "`table_name`", jdbcType = JdbcType.VARCHAR)
    private String tableName;

    //表ID
    //外键
    @TableField(value = "`table_id`", jdbcType = JdbcType.BIGINT)
    private Long tableId;

    //数据
    @TableField(value = "`content`", jdbcType = JdbcType.CLOB)
    private String content;

    //删除批次号
    @Size(max = 200, message = "删除批次号不能超过200个字符")
    @TableField(value = "`delete_seq`", jdbcType = JdbcType.VARCHAR)
    private String deleteSeq;

    //删除时间
    @TableField(value = "`delete_time`", jdbcType = JdbcType.TIMESTAMP)
    private Date deleteTime;

    //删除操作人ID
    //外键
    @TableField(value = "`delete_by`", jdbcType = JdbcType.BIGINT)
    private Long deleteBy;

    //删除备注
    @TableField(value = "`delete_remark`", jdbcType = JdbcType.CLOB)
    private String deleteRemark;

}
